package com.lovo.dao;

import com.lovo.bean.Role;
import com.lovo.bean.Throne;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectAll();

    List<Role> selectAllByQuery(String roleName);

    List<Role> getAllRoles();

    List<Integer> getUserRole(int userId);
}